using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Utils;

public class PhonePanel : MonoBehaviour
{
    private GameObject attackBtn, funcBtn;

    private void Awake()
    {
        attackBtn = UITool.GetChildGameObject("AttackBtn", gameObject);
        funcBtn = UITool.GetChildGameObject("FuncBtn", gameObject);
    }

    public void SwitchBtnsActive(bool state)
    {
        attackBtn.SetActive(!state);
        funcBtn.SetActive(state);
    }

    private void OnDestroy()
    {
        gameObject.SetActive(false);
    }
}
